package com.huiyuanai.service.user;

import com.huiyuanai.dao.User;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * @Author: liwan
 * @Description:
 * @Date: create in 2021/10/4/004 9:23:34
 */
public interface UserService {
    //登录
    public User logIn(String userCode) throws Exception;

    //修改密码
    public int updataPWD(String pwd, int id) throws Exception;

    //查询总人数
    public int userCount(String userName, int role) throws Exception;

    //查询用户
    public List<User> getUserList(String userName, int role, int openPage, int countPage, String userCode) throws Exception;

    //添加用户
    public int addUser(User user) throws Exception;

    //判断用户编码是否存在
    public int isUserCode(String userCode) throws Exception;

    //删除用户
    public int userDel(String userID) throws Exception;

    //更新数据
    public int updataUser(User user) throws Exception;
}
